<div class="tpl-portlet-components">
    <div class="portlet-title">
        <div class="caption font-green bold">
            <span class="am-icon-code"></span> 商品列表
        </div>
    </div>
    <div class="tpl-block">
        <div class="am-g">
            <div class="am-u-sm-12">
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <label class="am-btn"><h3>店铺类型:</h3></label>
                        <button type="button" class="am-btn am-btn-default am-btn-success"> 电商</button>
                        <button type="button" class="am-btn am-btn-default am-btn-secondary"> 预约</button>
                        <button type="button" class="am-btn am-btn-default am-btn-warning"> 到店</button>
                    </div>
                    <select class="xiala-right">
                        <option value="option1">电商</option>
                        <option value="option2">预约</option>
                        <option value="option3">到店</option>
                    </select>
                    <span class="xiala-right">默认展示店铺类型 &nbsp;&nbsp;&nbsp;</span>
                </div>
            </div>
            <div>
                <div class="am-fr">
                    <ul class="am-pagination tpl-pagination">
                        <li><a href="#">添加商品</a></li>
                        <li><a href="#">复制商品</a></li>
                        <li><a href="#">商品分类</a></li>
                        <li><a href="#">导出数据</a></li>
                    </ul>
                </div>
                <input type="text" class="form-control form-control-solid input-small" placeholder="搜索..."/>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12">
                    <table class="am-table am-table-striped am-table-hover table-main">
                        <thead>
                            <tr>
                                <th><input type="checkbox"></th>
                                <th class="table-paice">显示排序</th>
                                <th class="table-paice">分类</th>
                                <th class="table-paice">商品名称</th>
                                <th class="table-title">商品图片</th>
                                <th class="table-title">价格</th>
                                <th class="table-type">销量</th>
                                <th class="table-type">库存量</th>
                                <th class="table-date am-hide-sm-only">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <#list goods.rows as o>
                                <tr>
                                    <td><input type="checkbox"></td>
                                    <td></td>
                                    <td></td>
                                    <td>${o.goodsName!}</td>
                                    <td>${o.img!}</td>
                                    <td></td>
                                    <td class="am-hide-sm-only">${o.count!}</td>
                                    <td class="am-hide-sm-only">${o.inventory!}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <!--<button  class="orderInfo am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 查看 </button>-->
                                                <button class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-copy"></span> 修改</button>
                                                <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</button>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </#list>
                        </tbody>
                    </table>
                    <div class="am-cf">
                        <div class="am-fr">
                            <ul class="am-pagination tpl-pagination">
                                <li class="am-disabled"><a href="#">«</a></li>
                                <li class="am-active"><a href="#">1</a></li>
                                <li><a href="">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">»</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>

    $(function () {
        $(".orderInfo").click(function () {
            var  url="order/orderInfo/1";
            $(".loadPage").show();
            $(".tpl-content-wrapper").load(url,function () {
                $(".loadPage").hide();
            });
        });

    });
</script>


